from manim import *


class app(Scene):
    def construct(self):
        square = Square()   # 1.创建方形
        # square.rotate(PI / 4)

        circle = Circle()   # 2.创建圆形
        circle.set_fill(PINK, opacity=0.5)

        self.play(Create(square))
        self.play(Transform(square, circle))
        self.play(FadeOut(square))
